<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<div >
	<!-- t改为shieldTarget，且为jQuery选择器形式 -->
    <form action="${ctxPathA}/system/sensitivewordset/search" method="post" shieldTarget="#searchResult" class="searchForm">
        <div class="search-box">
        	<span class="search-i"><b>字典库：</b>
		    	<select name="dict" style="max-width: 400px;">
		    		<option value="">综合【汇总后】</option>
		    		<optgroup label="内置库">
	<c:forEach var="model" items="${dicts_embed }">
						<option value="${model.fileName }">${model.fileName }[${model.name }]</option>
	</c:forEach>
		    		</optgroup>
         			<optgroup label="扩展库">
	<c:forEach var="model" items="${dicts_ext }">
						<option value="${model.fileName }">${model.fileName }[${model.name }]</option>
	</c:forEach>
		    		</optgroup>
         		</select>
            </span>
		    <span class="search-i"><b>敏感词：</b><input type="text" name="word"/></span>
		    <span class="search-i"><b>类型：</b>
		    	<select name="type" >
		    		<option value="">全部</option>
         			<option value="0">禁用</option>
         			<option value="1" relatedTo="#SensitiveReplaceWord">替换</option>
         		</select>
            </span>
            <span class="search-i">
	            <input class="button submit" type="submit" name="doSearch" value="查询">
	            <!-- href改为data-url -->
	            <a data-url="${ctxPathA }/system/sensitivewordset/toAddOrUpdate" class="shieldDialog" viewTitle="添加敏感词信息" viewWidth="400">
	            	<input class="addBaseTable" type="button" name="addBaseTable" value="添加">
	            </a>
            </span>
        </div>
        <div id="searchResult"></div>
    </form>
</div>
</shield:permssion>